package com.ctvit.ichart.service;

import com.ctvit.framework.service.BaseService;

import java.util.HashMap;
import java.util.List;

@SuppressWarnings("serial")
public class IchartService extends BaseService {
	public HashMap getObjBySql(String sql) {
		List lstList = genericDao.executeSql(sql);
		HashMap map = null;
		if (lstList != null && lstList.size() > 0) {
			map = (HashMap) lstList.get(0);
		}
		return map;
	}
	
	public List<HashMap> getObjListBySql(String sql){
		List reList = genericDao.executeSql(sql);
		List<HashMap> returnList = null;
		
		if (reList != null && reList.size()>0 ){
			returnList = reList;
		}
		return returnList;
	}
	
}
